home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204inc_i.lzh / libraries / configvars.i < prev    next >
Text File  |  1991-03-14  |  2KB  |  61 lines

  1.     IFND    LIBRARIES_CONFIGVARS_I
  2. LIBRARIES_CONFIGVARS_I    SET    1
  3. **
  4. **    $Filename: libraries/configvars.i $
  5. **    $Release: 2.04 $
  6. **    $Revision: 36.6 $
  7. **    $Date: 90/05/08 $
  8. **
  9. **    Software structures used by AutoConfig (tm) boards
  10. **
  11. **    (C) Copyright 1985,1989,1990 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. **
  14.  
  15.     IFND    EXEC_NODES_I
  16.     INCLUDE    "exec/nodes.i"
  17.     ENDC    ;EXEC_NODES_I
  18.  
  19.     IFND    LIBRARIES_CONFIGREGS_I
  20.     INCLUDE    "libraries/configregs.i"
  21.     ENDC    ;LIBRARIES_CONFIGREGS_I
  22.  
  23. **
  24. ** At early system startup time, one ConfigDev structure is created for
  25. ** each board found in the system.  Software may seach for ConfigDev
  26. ** structures by vendor & product ID number.  For debugging and diagnostic
  27. ** use, the entire list can be accessed.  See the expansion.library document
  28. ** for more information.
  29. **
  30.  STRUCTURE ConfigDev,0
  31.     STRUCT    cd_Node,LN_SIZE
  32.     UBYTE    cd_Flags    ; (read/write)
  33.     UBYTE    cd_Pad        ; reserved
  34.     STRUCT    cd_Rom,ExpansionRom_SIZEOF ; copy of board's expansion ROM
  35.     APTR    cd_BoardAddr    ; where in memory the board was placed
  36.     ULONG    cd_BoardSize    ; size of board in bytes
  37.     UWORD    cd_SlotAddr    ; which slot number (PRIVATE)
  38.     UWORD    cd_SlotSize    ; number of slots (PRIVATE)
  39.     APTR    cd_Driver    ; pointer to node of driver
  40.     APTR     cd_NextCD    ; linked list of drivers to config 
  41.     STRUCT    cd_Unused,4*4    ; for whatever the driver wants!
  42.     LABEL    ConfigDev_SIZEOF
  43.  
  44. ; cd_Flags
  45.     BITDEF    CD,SHUTUP,0    ; this board has been shut up
  46.     BITDEF    CD,CONFIGME,1    ; this board needs a driver to claim it
  47.     BITDEF    CD,BADMEMORY,2    ; this board contains bad memory
  48.  
  49. **
  50. ** Boards are usually "bound" to software drivers.
  51. ** This structure is used by GetCurrentBinding() and SetCurrentBinding()
  52. **
  53.  STRUCTURE CurrentBinding,0
  54.     APTR    cb_ConfigDev
  55.     APTR    cb_FileName
  56.     APTR     cb_ProductString
  57.     APTR    cb_ToolTypes
  58.     LABEL    CurrentBinding_SIZEOF
  59.  
  60.     ENDC    ;LIBRARIES_CONFIGVARS_I
  61.